Integrand size = 35, antiderivative size = 393 \[ \int \frac {1}{(a+b x) (c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\frac {2 d^2 \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (d e-c f) (d g-c h) \sqrt {c+d x}}-\frac {2 d \sqrt {h} \sqrt {-f g+e h} \sqrt {c+d x} \sqrt {\frac {f (g+h x)}{f g-e h}} E\left (\arcsin \left (\frac {\sqrt {h} \sqrt {e+f x}}{\sqrt {-f g+e h}}\right )|-\frac {d (f g-e h)}{(d e-c f) h}\right )}{(b c-a d) (d e-c f) (d g-c h) \sqrt {-\frac {f (c+d x)}{d e-c f}} \sqrt {g+h x}}-\frac {2 b \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \operatorname {EllipticPi}\left (-\frac {b (d e-c f)}{(b c-a d) f},\arcsin \left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right ),\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d)^2 \sqrt {f} \sqrt {e+f x} \sqrt {g+h x}} \]
[Out]
Time = 0.42 (sec) , antiderivative size = 393, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.229, Rules used = {185, 106, 21, 115, 114, 175, 552, 551} \[ \int \frac {1}{(a+b x) (c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx=-\frac {2 d \sqrt {h} \sqrt {c+d x} \sqrt {e h-f g} \sqrt {\frac {f (g+h x)}{f g-e h}} E\left (\arcsin \left (\frac {\sqrt {h} \sqrt {e+f x}}{\sqrt {e h-f g}}\right )|-\frac {d (f g-e h)}{(d e-c f) h}\right )}{\sqrt {g+h x} (b c-a d) (d e-c f) (d g-c h) \sqrt {-\frac {f (c+d x)}{d e-c f}}}-\frac {2 b \sqrt {c f-d e} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \operatorname {EllipticPi}\left (-\frac {b (d e-c f)}{(b c-a d) f},\arcsin \left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {c f-d e}}\right ),\frac {(d e-c f) h}{f (d g-c h)}\right )}{\sqrt {f} \sqrt {e+f x} \sqrt {g+h x} (b c-a d)^2}+\frac {2 d^2 \sqrt {e+f x} \sqrt {g+h x}}{\sqrt {c+d x} (b c-a d) (d e-c f) (d g-c h)} \]
[In]
[Out]
Rule 21
Rule 106
Rule 114
Rule 115
Rule 175
Rule 185
Rule 551
Rule 552
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {d}{(b c-a d) (c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}}+\frac {b}{(b c-a d) (a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}\right ) \, dx \\ & = \frac {b \int \frac {1}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{b c-a d}-\frac {d \int \frac {1}{(c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{b c-a d} \\ & = \frac {2 d^2 \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (d e-c f) (d g-c h) \sqrt {c+d x}}-\frac {(2 b) \text {Subst}\left (\int \frac {1}{\left (b c-a d-b x^2\right ) \sqrt {e-\frac {c f}{d}+\frac {f x^2}{d}} \sqrt {g-\frac {c h}{d}+\frac {h x^2}{d}}} \, dx,x,\sqrt {c+d x}\right )}{b c-a d}+\frac {(2 d) \int \frac {-\frac {1}{2} c f h-\frac {1}{2} d f h x}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{(b c-a d) (d e-c f) (d g-c h)} \\ & = \frac {2 d^2 \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (d e-c f) (d g-c h) \sqrt {c+d x}}-\frac {(d f h) \int \frac {\sqrt {c+d x}}{\sqrt {e+f x} \sqrt {g+h x}} \, dx}{(b c-a d) (d e-c f) (d g-c h)}-\frac {\left (2 b \sqrt {\frac {d (e+f x)}{d e-c f}}\right ) \text {Subst}\left (\int \frac {1}{\left (b c-a d-b x^2\right ) \sqrt {1+\frac {f x^2}{d \left (e-\frac {c f}{d}\right )}} \sqrt {g-\frac {c h}{d}+\frac {h x^2}{d}}} \, dx,x,\sqrt {c+d x}\right )}{(b c-a d) \sqrt {e+f x}} \\ & = \frac {2 d^2 \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (d e-c f) (d g-c h) \sqrt {c+d x}}-\frac {\left (2 b \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}}\right ) \text {Subst}\left (\int \frac {1}{\left (b c-a d-b x^2\right ) \sqrt {1+\frac {f x^2}{d \left (e-\frac {c f}{d}\right )}} \sqrt {1+\frac {h x^2}{d \left (g-\frac {c h}{d}\right )}}} \, dx,x,\sqrt {c+d x}\right )}{(b c-a d) \sqrt {e+f x} \sqrt {g+h x}}-\frac {\left (d f h \sqrt {c+d x} \sqrt {\frac {f (g+h x)}{f g-e h}}\right ) \int \frac {\sqrt {\frac {c f}{-d e+c f}+\frac {d f x}{-d e+c f}}}{\sqrt {e+f x} \sqrt {\frac {f g}{f g-e h}+\frac {f h x}{f g-e h}}} \, dx}{(b c-a d) (d e-c f) (d g-c h) \sqrt {\frac {f (c+d x)}{-d e+c f}} \sqrt {g+h x}} \\ & = \frac {2 d^2 \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (d e-c f) (d g-c h) \sqrt {c+d x}}-\frac {2 d \sqrt {h} \sqrt {-f g+e h} \sqrt {c+d x} \sqrt {\frac {f (g+h x)}{f g-e h}} E\left (\sin ^{-1}\left (\frac {\sqrt {h} \sqrt {e+f x}}{\sqrt {-f g+e h}}\right )|-\frac {d (f g-e h)}{(d e-c f) h}\right )}{(b c-a d) (d e-c f) (d g-c h) \sqrt {-\frac {f (c+d x)}{d e-c f}} \sqrt {g+h x}}-\frac {2 b \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \Pi \left (-\frac {b (d e-c f)}{(b c-a d) f};\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d)^2 \sqrt {f} \sqrt {e+f x} \sqrt {g+h x}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 23.22 (sec) , antiderivative size = 322, normalized size of antiderivative = 0.82 \[ \int \frac {1}{(a+b x) (c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\frac {2 i (c+d x) \sqrt {\frac {d (e+f x)}{f (c+d x)}} \sqrt {\frac {d (g+h x)}{h (c+d x)}} \left ((b c-a d) h E\left (i \text {arcsinh}\left (\frac {\sqrt {-c+\frac {d e}{f}}}{\sqrt {c+d x}}\right )|\frac {d f g-c f h}{d e h-c f h}\right )+(b d g-2 b c h+a d h) \operatorname {EllipticF}\left (i \text {arcsinh}\left (\frac {\sqrt {-c+\frac {d e}{f}}}{\sqrt {c+d x}}\right ),\frac {d f g-c f h}{d e h-c f h}\right )+b (-d g+c h) \operatorname {EllipticPi}\left (-\frac {b c f-a d f}{b d e-b c f},i \text {arcsinh}\left (\frac {\sqrt {-c+\frac {d e}{f}}}{\sqrt {c+d x}}\right ),\frac {d f g-c f h}{d e h-c f h}\right )\right )}{(b c-a d)^2 \sqrt {-c+\frac {d e}{f}} (-d g+c h) \sqrt {e+f x} \sqrt {g+h x}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(975\) vs. \(2(353)=706\).
Time = 2.06 (sec) , antiderivative size = 976, normalized size of antiderivative = 2.48
method | result | size |
elliptic | \(\frac {\sqrt {\left (d x +c \right ) \left (f x +e \right ) \left (h x +g \right )}\, \left (-\frac {2 \left (d f h \,x^{2}+d e h x +d f g x +d e g \right ) d}{\left (c^{2} f h -c d e h -c d f g +d^{2} e g \right ) \left (a d -b c \right ) \sqrt {\left (x +\frac {c}{d}\right ) \left (d f h \,x^{2}+d e h x +d f g x +d e g \right )}}+\frac {2 \left (\frac {d \left (c f h -d e h -d f g \right )}{\left (c^{2} f h -c d e h -c d f g +d^{2} e g \right ) \left (a d -b c \right )}+\frac {\left (d e h +d f g \right ) d}{\left (c^{2} f h -c d e h -c d f g +d^{2} e g \right ) \left (a d -b c \right )}\right ) \left (\frac {g}{h}-\frac {e}{f}\right ) \sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, F\left (\sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{\sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}}+\frac {2 d^{2} f h \left (\frac {g}{h}-\frac {e}{f}\right ) \sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, \left (\left (-\frac {g}{h}+\frac {c}{d}\right ) E\left (\sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )-\frac {c F\left (\sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{d}\right )}{\left (c^{2} f h -c d e h -c d f g +d^{2} e g \right ) \left (a d -b c \right ) \sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}}-\frac {2 \left (\frac {g}{h}-\frac {e}{f}\right ) \sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, \Pi \left (\sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}, \frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {a}{b}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{\left (a d -b c \right ) \sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}\, \left (-\frac {g}{h}+\frac {a}{b}\right )}\right )}{\sqrt {d x +c}\, \sqrt {f x +e}\, \sqrt {h x +g}}\) | \(976\) |
default | \(\text {Expression too large to display}\) | \(1978\) |
[In]
[Out]
Timed out. \[ \int \frac {1}{(a+b x) (c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {1}{(a+b x) (c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int \frac {1}{\left (a + b x\right ) \left (c + d x\right )^{\frac {3}{2}} \sqrt {e + f x} \sqrt {g + h x}}\, dx \]
[In]
[Out]
\[ \int \frac {1}{(a+b x) (c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int { \frac {1}{{\left (b x + a\right )} {\left (d x + c\right )}^{\frac {3}{2}} \sqrt {f x + e} \sqrt {h x + g}} \,d x } \]
[In]
[Out]
\[ \int \frac {1}{(a+b x) (c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int { \frac {1}{{\left (b x + a\right )} {\left (d x + c\right )}^{\frac {3}{2}} \sqrt {f x + e} \sqrt {h x + g}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(a+b x) (c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int \frac {1}{\sqrt {e+f\,x}\,\sqrt {g+h\,x}\,\left (a+b\,x\right )\,{\left (c+d\,x\right )}^{3/2}} \,d x \]
[In]
[Out]